import request from '@/utils/request.js'
// 获取歌手列表
export const getSingers = ({ limit = 30, offset = 0, initial, type = -1, area = -1 }) => {
  return request({
    method: 'GET',
    url: '/artist/list',
    params: { limit, offset, initial, type, area }
  })
}
// 歌手热门50首
export const getSingerTop50 = (id) => {
  return request({
    method: 'GET',
    url: '/artist/top/song',
    params: { id }
  })
}

// 歌手描述
export const getSingerDesc = (id) => {
  return request({
    method: 'GET',
    url: '/artist/desc',
    params: { id }
  })
}

// 歌手专辑
export const getSingerAlbum = (id, limit, offset) => {
  return request({
    method: 'GET',
    url: '/artist/album',
    params: { id, limit, offset }
  })
}

// 歌手详情
export const getSingerDetail = (id) => {
  return request({
    method: 'GET',
    url: '/artist/detail',
    params: { id }
  })
}
// 获取歌手mv
export const getSingerMV = (id) => {
  return request({
    method: 'GET',
    url: '/artist/mv',
    params: { id }
  })
}
// 获取收藏歌手
export const getSubSinger = () => {
  return request({
    method: 'GET',
    url: '/artist/sublist'
  })
}
